<?php

namespace App\Models;

use App\Models\Contract\SerializeDatetime;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Admodel extends Model
{
    use HasFactory, SerializeDatetime;

    protected $guarded = [];

    public function adtype()
    {
        return $this->belongsTo(Adtype::class,'adtype_id');
    }

    public function adplatform(){

        return $this->belongsTo(Adplatforms::class,'adplatform_id');
    }
}
